import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ic:baseline-view-in-ar',
      // keepAlive: true,
      order: 1,
      title: $t('page.dashboard.nutrition'),
    },
    name: 'nutrition',
    path: '/nutrition',
    children: [
      {
        name: 'nutrients',
        path: '/nutrients',
        meta: {
          icon: '',
          title: $t('page.dashboard.nutrients'),
        },
        children: [
          {
            name: 'nutrientsclass',
            path: '/nutrientsclass',
            component: () =>
              import('#/views/nutrition/nutrients/nutrientsClass.vue'),
            meta: {
              title: $t('page.dashboard.nutrientsclass'),
            },
          },
          {
            name: 'nutrientsView',
            path: '/nutrientsView',
            component: () =>
              import('#/views/nutrition/nutrients/nutrientsView/index.vue'),
            meta: {
              title: $t('page.dashboard.nutrients'),
            },
          },
        ],
      },
      {
        name: 'material',
        path: '/material',
        // component: () =>
        //   import('#/views/nutrition/question/quesclass/index.vue'),
        meta: {
          title: $t('page.dashboard.nutriques'),
        },
        children: [
          {
            name: 'materialClass',
            path: '/materialClass',
            component: () =>
              import('#/views/nutrition/material/materialClass/index.vue'),
            meta: {
              title: $t('page.dashboard.nutriclass'),
            },
          },
          {
            name: 'materialView',
            path: '/materialView',
            component: () =>
              import('#/views/nutrition/material/materView/index.vue'),
            meta: {
              title: $t('page.dashboard.nutriques'),
            },
          },
        ],
      },
      // {
      //   name: 'question',
      //   path: '/question',
      //   // component: () =>
      //   //   import('#/views/nutrition/question/quesclass/index.vue'),
      //   meta: {
      //     title: $t('page.dashboard.question'),
      //   },
      //   children: [
      //     {
      //       name: 'quesclass',
      //       path: '/quesclass',
      //       component: () =>
      //         import('#/views/nutrition/question/quesclass/index.vue'),
      //       meta: {
      //         title: $t('page.dashboard.quesclass'),
      //       },
      //     },
      //     {
      //       name: 'nutriquestion',
      //       path: '/nutriquestion',
      //       component: () =>
      //         import('#/views/nutrition/question/ques/index.vue'),
      //       meta: {
      //         title: $t('page.dashboard.nutriquestion'),
      //       },
      //     },
      //   ],
      // },
      // {
      //   name: 'nutrikonw',
      //   path: '/nutrikonw',
      //   meta: {
      //     title: $t('page.dashboard.nutriques'),
      //   },
      //   children: [
      //     {
      //       name: 'konwclass',
      //       path: '/konwclass',
      //       component: () =>
      //         import('#/views/nutrition/konw/konwclass/index.vue'),
      //       meta: {
      //         title: $t('page.dashboard.nutriclass'),
      //       },
      //     },
      //     {
      //       name: 'konwcledge',
      //       path: '/konwcledge',
      //       component: () =>
      //         import('#/views/nutrition/konw/konwledge/index.vue'),
      //       meta: {
      //         title: $t('page.dashboard.nutriques'),
      //       },
      //     },
      //   ],
      // },
    ],
  },
];

export default routes;
